﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace comdiinfo
{
    public class G64TrackSize : G64Element<Int16>
    {
        public G64TrackSize(int trackNo)
            : base(trackNo)
        {
            elementName = String.Format("Size of Track {0}", CBMFunction.CBMTrackNoByTrackNo(trackNo));
        }
        public override void LoadData(ref G64ImageData imgData, int srcOffset, int count)
        {
            ElementValue = BitConverter.ToInt16(imgData.readBytes(srcOffset, count, elementName), 0);
        }
        public override void CheckValue()
        {
            if (ElementValue == 0)
            {
                elementStatus = G64ElementStatus.Ok;
            }
            else
            {
                elementStatus = G64ElementStatus.Ok;
            }
        }
    }
}
